package com.amat0urheu.dao;/*
 *@Auther:amaT0ur
 *@create:2023-11-15
 */

import com.amat0urheu.pojo.CloudPojo.ImagePojo;
import com.amat0urheu.pojo.CloudPojo.IpPort;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface IpPortMapper {
    @Select("select * from mc_port ")
    List<IpPort> getIpPorts();
    @Insert("insert into mc_port (preIpport,aftIpport) values(#{ipPort.preIpport},#{ipPort.aftIpport}) ")
    int saveIpport(@Param("ipPort")IpPort ipPort);
    @Delete("delete from mc_port where id=#{id}")
    int removeIpport(Integer id);
}
